package cn.ztf.zshop.sys.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import java.util.List;


@Data
public class RoleDto {

    @NotNull(message = "角色id不能为空",groups = Update.class)
    private Long roleId;
    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空")
    private String roleName;
    /**
     * 备注
     */
    private String remark;

    /**
     * 权限
     */
    private List<Long> menus;

    public interface Update extends Default {}
}
